//对外暴露配置路由(常量路由)
import { RouteRecordRaw } from "vue-router";
export const constantRoute: RouteRecordRaw[] = [
  {
    //登录成功以后展示数据的路由
    path: "/",
    component: () => import("@/view/home/index.vue"),
    name: "layout",
  },
  {
    //登录路由
    path: "/login",
    component: () => import("@/view/login/index.vue"),
    name: "login", //命名路由
  },
  {
    //登录成功以后展示数据的路由
    path: "/table",
    component: () => import("@/view/table/index.vue"),
    name: "table",
  },
  {
    path: "/404",
    component: () => import("@/view/404/index.vue"),
    name: "404",
  },
  {
    //重定向
    path: "/:pathMatch(.*)*",
    redirect: "/404",
    name: "Any",
  },
];
